x86/p2m: paging_write_p2m_entry() is a private function
authorJan Beulich <jbeulich@suse.com>
Wed, 11 Nov 2020 07:57:32 +0000 (08:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Nov 2020 07:57:32 +0000 (08:57 +0100)
commit69634224afaf84474f04e1ab050f216d66bcda68
tree969cecad11dc6fde1e0030a3d031b6ca346e8b9b
parent53bacb86f496fdb11560d9e3b361bca7de60d268
x86/p2m: paging_write_p2m_entry() is a private function

As it gets installed by p2m_pt_init(), it doesn't need to live in
paging.c. The function working in terms of l1_pgentry_t even further
indicates its non-paging-generic nature. Move it and drop its
paging_ prefix, not adding any new one now that it's static.

This then also makes more obvious that in the EPT case we wouldn't
risk mistakenly calling through the NULL hook pointer.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/paging.c
xen/include/asm-x86/paging.h